<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body th:with="myurl = 'http://localhost:8080/myweb/jsp?name=张三'">
    模板名称: <p th:text="${#execInfo.templateName}"></p>
    模板模式: <p th:text="${#execInfo.templateMode}"></p>
    <div th:with="espath = ${#uris.escapePath(myurl)}">
        编码: [[${espath}]] <br>
        解码: [[${#uris.unescapePath(espath)}]]
    </div>
	<hr>
	<h1>#dates内置工具类使用</h1>
	<p>原始时间: <span th:text="${myDate}"></span></p>
	<p>格式化时间: <span th:text="${#dates.format(myDate, 'yyyy-MM-dd HH:mm:ss')}"></span></p>
	<hr>
	<h1>#numbers工具类使用</h1>
	<p>原始价格: <span th:text="${price}"></span></p>
	<p th:text="'1: ' + ${#numbers.formatInteger(price, 0)}"></p>
	<p th:text="'2: ' + ${#numbers.formatInteger(price, 3)}"></p>
	<p th:text="'3: ' + ${#numbers.formatInteger(price, 4)}"></p>
	<p th:text="'4: ' + ${#numbers.formatDecimal(price, 2, 1)}"></p>

	<hr>
	<h1>#strings工具类使用</h1>
	<p>字符串数据: <span th:text="${name}"></span></p>
	<p th:if="!${#strings.isEmpty(name)}">name不为null</p>
	<p th:text="${#strings.substring(name, 1, 3)}"></p>
	<p th:text="${#strings.toUpperCase(name)}"></p>
	<p th:text="${#strings.indexOf(name, 'san')}"></p>

</body>
</html>